home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / animatn / t4diblib / viewlib1.f4_ / viewlib1.f4
Text File  |  1995-12-11  |  2KB  |  88 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Appearance      =   0  'Flat
  4.    BackColor       =   &H80000005&
  5.    Caption         =   "VIEWLIB1"
  6.    ClientHeight    =   2004
  7.    ClientLeft      =   2388
  8.    ClientTop       =   2244
  9.    ClientWidth     =   4188
  10.    BeginProperty Font 
  11.       name            =   "MS Sans Serif"
  12.       charset         =   1
  13.       weight          =   700
  14.       size            =   7.8
  15.       underline       =   0   'False
  16.       italic          =   0   'False
  17.       strikethrough   =   0   'False
  18.    EndProperty
  19.    ForeColor       =   &H80000008&
  20.    Height          =   2424
  21.    Left            =   2340
  22.    LinkTopic       =   "Form1"
  23.    ScaleHeight     =   2004
  24.    ScaleWidth      =   4188
  25.    Top             =   1872
  26.    Width           =   4284
  27.    Begin VB.CommandButton Command1 
  28.       Appearance      =   0  'Flat
  29.       BackColor       =   &H80000005&
  30.       Caption         =   "Quit"
  31.       Height          =   372
  32.       Left            =   2280
  33.       TabIndex        =   1
  34.       Top             =   1440
  35.       Width           =   972
  36.    End
  37.    Begin VBX.T4DILIB dilib1 
  38.       Caption         =   "dilib1"
  39.       ControlMode     =   0  'Lib -> PIC
  40.       Height          =   372
  41.       Left            =   3360
  42.       Top             =   1440
  43.       Visible         =   0   'False
  44.       Width           =   732
  45.    End
  46.    Begin VB.ListBox List1 
  47.       Appearance      =   0  'Flat
  48.       Height          =   1176
  49.       Left            =   2280
  50.       TabIndex        =   0
  51.       Top             =   120
  52.       Width           =   1812
  53.    End
  54. End
  55. Attribute VB_Name = "Form1"
  56. Attribute VB_Creatable = False
  57. Attribute VB_Exposed = False
  58. Option Explicit
  59.  
  60. Private Sub Command1_Click()
  61.  End
  62. End Sub
  63.  
  64. Private Sub Form_Load()
  65. Dim myctr%
  66. 'Center the form.
  67.  Top = (Screen.Height - Height) / 2!
  68.  Left = (Screen.Width - Width) / 2!
  69. 'Set our DIB library name and open it.
  70.  dilib1.LibraryName = "bluespin.ilb"
  71.  dilib1.Action = IM_ACTION_OPENLIBRARY
  72. 'Fill the list box with member numbers.
  73.  For myctr = 1 To dilib1.MemberCount
  74.   dilib1.MemberNumber = myctr
  75.   list1.AddItem "[" + Trim$(Str$(myctr)) + "]"
  76.  Next myctr
  77. End Sub
  78.  
  79. Private Sub List1_Click()
  80. 'Add 1 to ListIndex for Base-1.
  81.  dilib1.MemberNumber = list1.ListIndex + 1
  82. 'Load and display the image.
  83.  dilib1.Action = IM_ACTION_GETMEMBER
  84.  Picture = dilib1.Picture
  85. End Sub
  86.  
  87.  
  88.